/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.infonova.education.microservice.service;

import com.infonova.education.microservice.repository.entity.Order;
import com.infonova.education.microservice.repository.entity.OrderPosition;
import com.itextpdf.text.DocumentException;

/**
 *
 * @author Stefan
 */
public interface OrderService {
    public long createOrder(long customerId);
    public long createOrder(Order order);
    public void addPosition(OrderPosition position);
    public void deletePosition(OrderPosition position);
    public void finishOrder(long orderId);
    public Order findOrderById(long orderId);
    public byte[] printOrderByID(long orderID) throws DocumentException;
    public Iterable<Order> findAll();
    public OrderPosition findOrderPositionById(Long orderPositinoId);
    public long calculatePrice(long orderId);
}
